package com.ruoyi.wms.domain.bo.employee;


import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.mybatis.core.domain.BaseEntity;
import com.ruoyi.wms.domain.entity.employee.Employees;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 员工信息业务对象 employees
 *
 * @author 邓滔滔
 * @date 2024-11-27
 */

@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Employees.class, reverseConvertGenerate = false)
public class EmployeesBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 用户
     */
    @NotNull(message = "用户不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long userId;

    /**
     * 所属门店
     */
    @NotNull(message = "所属门店不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long storeId;

    /**
     * 员工编号
     */
    private String employeeNumber;

    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空", groups = {AddGroup.class, EditGroup.class})
    private String name;

    /**
     * 性别
     */
    @NotNull(message = "性别 不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer gender;

    /**
     * 工号
     */
    private String workNumber;

    /**
     * 出生年月
     */
    @NotNull(message = "出生年月不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date birthDate;

    /**
     * 身份证号
     */
    private String idCardNumber;

    /**
     * 联系电话
     */
    private String phoneNumber;

    /**
     * 电子邮箱
     */
    private String email;

    /**
     * 家庭地址
     */
    private String homeAddress;

    /**
     * 岗位
     */
    @NotNull(message = "岗位不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long positionId;

    /**
     * 入职日期
     */
    @NotNull(message = "入职日期不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date joinDate;

    /**
     * 离职日期
     */
    private Date leaveDate;

    /**
     * 状态
     */
    @NotNull(message = "状态不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer status;

    /**
     * 月薪
     */
    private BigDecimal monthlySalary;

    /**
     * 银行账号
     */
    private String bankAccount;

    /**
     * 学历
     */
    private String education;

    /**
     * 工作经验
     */
    private String workExperience;

    /**
     * 照片路径
     */
    private String photoPath;

    /**
     * 备注
     */
    private String remarks;


}
